<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自定义规则追番</title>
</head>
<body>
    <span>注意，搜索一次后再次使用需要刷新网页，补充规则请修改代码</span><br/>
    <a href="https://gitee.com/h128/anime-enthusiast-navigation" target="_blank">动漫在线免费看网址导航</a>
    <input type="text" placeholder="请输入番剧名称" id="text">
    <button onclick=search()>搜索</button><br/>
    <script>
        var search_list = []
         // 补充规则
        var age = "https://agedm.org/search?query="
        var dm84 = "https://dm84.vip/s----------.html?wd="
        var lmm = "https://lmm52.com/vod/search.html?wd="
        var ant = "https://www.mayiyy.co/vodsearch.html?wd="
        var mcy = "https://www.mcydh.com/vodsearch/-------------.html?wd="
        var dldm = "https://www.dqsj.top/index.php/vod/search.html?wd="
        var omofun = "https://cn.211dm.com/search/-------------.html?wd="
        var dmzz = "http://www.yhdongman.cc/search.php?searchword="
        var fcdm = "https://www.fengchedonman.com/vodsearch/-------------.html?wd="
        var zgacgn = "https://zgacgn.com/search.php?searchword="
        var ggf = "https://www.gugu3.com/index.php/vod/search.html?wd="
        var zfz = "https://www.zhuifanzu1.com/vodsearch/-------------.html?wd="
        search_list.push(age,dm84,lmm,ant,mcy,dldm,omofun,dmzz,fcdm)
        search_list.push(zgacgn,ggf,zfz)
        //console.log(search_list)
        const input = document.getElementById("text")
      //  var search_url_list = []
        function search()
        {
            for(var idx=0;idx<search_list.length;idx++)
            {
                var search_url = search_list[idx]+=input.value
                var a = document.createElement("a")
                a.href = search_url
                a.innerHTML = search_url
                a.target = "_blank"
                document.body.append(a)
                document.body.append(document.createElement("br"))
              //  search_url_list.push(search_url)
            }
        }
    </script>
</body>
</html>